﻿using EcoSystem.Enums;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace EcoSystem
{
    public class SaveSettingsInput
    {
        /// <summary>
        /// 分类
        /// </summary>
        [Required]
        public string Category { get; set; }

        /// <summary>
        /// 系统编号
        /// </summary>
        public string ModuleCode { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        [Required]
        public ConfigLevel Level { get; set; }

        /// <summary>
        /// 要保存的数据项
        /// </summary>
        [Required]
        public Dictionary<string, object> Configs { get; set; }
    }

    public class SaveAllSettingsInput
    {
        /// <summary>
        /// 系统编号
        /// </summary>
        public string ModuleCode { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        [Required]
        public ConfigLevel Level { get; set; }

        /// <summary>
        /// 要保存的数据项
        /// </summary>
        [Required]
        public Dictionary<string, Dictionary<string, object>> Configs { get; set; }
    }

    public class SaveUserSettingsInput
    {
        /// <summary>
        /// 分类
        /// </summary>
        [Required]
        public string Category { get; set; }

        /// <summary>
        /// 系统编号
        /// </summary>
        public string ModuleCode { get; set; }

        /// <summary>
        /// 要保存的数据项
        /// </summary>
        [Required]
        public Dictionary<string, object> Configs { get; set; }
    }
}
